import Vue from 'vue'
import App from './App'
//Vuex处理数据
import Store from '@/store/index.js'
//处理缓存的方法
import Cache from '@/utils/cache'
//引入配置信息
import configs from '@/config/app.js'
//引入封装的所有组件
import "@/components/index.js"
//引入封装的方法
import {
	cdn,
	Tips,
	uploadFilePromise
} from '@/utils/utils.js'
//封装方法挂载到原型上
Vue.prototype.$config = configs;
Vue.prototype.$Cache = Cache;
Vue.prototype.$store = Store;
Vue.prototype.$cdn = cdn
Vue.prototype.$Tips = Tips
Vue.prototype.$uploadFilePromise = uploadFilePromise
//引入uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

//设置像素单位
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	Store,
	Cache,
})
app.$mount()